package com.ggk911.pharmacy_system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ggk911.pharmacy_system.entity.Purchase;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * @author ggk-911
 * @version 1.0 2023/3/20 9:45
 */
@Repository
public interface PurchaseMapper extends BaseMapper<Purchase> {

    /**
     * 增强查询
     * @param id
     * @return
     */
    Purchase selectByIdAd(Integer id);

    /**
     * 增强翻页查询
     * @param page
     * @param queryWrapper
     * @param <P>
     * @return
     */
    @Override
    <P extends IPage<Purchase>> P selectPage(P page,@Param("ew") Wrapper<Purchase> queryWrapper);

}
